package com.jright.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jright.dao.StudentDao;
import com.jright.po.Student;
import com.jright.service.StudentService;

@Service("studentService")
public class StudentServiceImpl implements StudentService{

	@Autowired
	private StudentDao studentDao;
	@Override
	public Student findStudent(String no, String password) {
		// TODO Auto-generated method stub
		return this.studentDao.findStudent(no, password);
	}
	@Override
	public Student findStudentByNo(String no) {
		// TODO Auto-generated method stub
		return this.studentDao.findStudentByNo(no);
	}
	@Override
	public int selectTopic(Integer topic_id, String no) {
		// TODO Auto-generated method stub
		return this.studentDao.selectTopic(topic_id, no);
	}
	@Override
	public Student findStudentByTopicId(Integer topic_id) {
		// TODO Auto-generated method stub
		return this.studentDao.findStudentByTopicId(topic_id);
	}
	@Override
	public Student wetherSelected(String no) {
		// TODO Auto-generated method stub
		return this.studentDao.wetherSelected(no);
	}
	@Override
	public String findTeacherNo(String no) {
		// TODO Auto-generated method stub
		return this.studentDao.findTeacherNo(no);
	}
	@Override
	public List<Student> findStudentByTeacherNo(String teacher_no) {
		// TODO Auto-generated method stub
		return this.studentDao.findStudentByTeacherNo(teacher_no);
	}
	@Override
	public int updateStudentStatus(String status, String no) {
		// TODO Auto-generated method stub
		return this.studentDao.updateStudentStatus(status, no);
	}
	@Override
	public int updateStudentTeacher(String teacher_no, String no) {
		// TODO Auto-generated method stub
		return this.studentDao.updateStudentTeacher(teacher_no, no);
	}
	@Override
	public List<String> findNoTeacherStudentNo() {
		// TODO Auto-generated method stub
		return this.studentDao.findNoTeacherStudentNo();
	}
	@Override
	public int wetherAllSelect(String teacher_no) {
		// TODO Auto-generated method stub
		return this.studentDao.wetherAllSelect(teacher_no);
	}
	@Override
	public List<Integer> findStudentTopicId(String teacher_no) {
		// TODO Auto-generated method stub
		return this.studentDao.findStudentTopicId(teacher_no);
	}
	
}
